//
//  TEAlbum.m
//  TintExample
//
//  Created by Kevin Wu on 3/15/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import "TEAlbum.h"

@implementation TEAlbum

@synthesize aid = _aid;
@synthesize name = _name;
@synthesize date = _date;
@synthesize images = _images;

- (void)dealloc {
    TTRelease(_aid);
    TTRelease(_name);
    TTRelease(_date);
    TTRelease(_images);
    [super dealloc];
}

+ (NSDictionary *)propertyMap {
    return [NSDictionary dictionaryWithObjectsAndKeys:
            @"aid", @"id", 
            @"name", @"name", 
            @"date", @"date", 
            @"images", @"images", nil];
}

- (NSString *)description {
    return [NSString stringWithFormat:@"%@[aid=%@ name=%@ date[dict]=%@ images[array]=%@]", NSStringFromClass([self class]), _aid, _name, _date, _images];
}

@end
